﻿using FileSC.DB.Entities;
using System;

namespace FileSC.DB
{
    public class DBHost
    {
        //主机ID，每次运行都不同
        internal static Guid HostId = Guid.NewGuid();

        public static void Link(HostBase host)
        {
            host.HostId = HostId;
        }

        public static bool EqualMy(HostBase host)
        {
            return host.HostId.Equals(HostId);
        }
    }
}
